package com.hkq.mall.member.feign;

import com.hkq.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 1.引入依赖spring-cloud-starter-openfeign
 * 2. @FeignClient接口
 * 3. 主启动类@EnableFeignClients(basePackages = "com.hkq.mall.member.feign")
 */
@FeignClient("gulimall-coupon")
public interface CouponFeignService {
    @RequestMapping("/coupon/coupon/list")
    R getCouponList();
}
